package org.liuqm.mapper;

import org.apache.ibatis.annotations.Param;
import org.liuqm.entity.Auction;

import java.util.List;

public interface AuctionMapper {


    /**
     * 获取总记录数
     */
    public int getCount(@Param("auctionEntity")Auction auction);

    /**
     * 获取每页显示的记录
     * @param auction  查询条件
     * @param pageBegin  从哪条记录开始
     * @param pageSize   每页显示多少条记录
     * @return
     */
    public List<Auction> getPageList(@Param("auctionEntity") Auction auction,@Param("pageBegin") int pageBegin,@Param("pageSize") int pageSize);
}
